//
//  LVPullToRefreshAnimator.h
//  Live
//
//  Created by RoyLei on 16/7/14.
//  Copyright © 2016年 Heller. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BNDOfficeDocKit.h"

CGFloat LVAElasticEaseIn(CGFloat p);

typedef CGFloat (*LVViewEasingFunctionPointerType)(CGFloat);

/**
 *  动画类方法
 */
@interface LVPullToRefreshAnimator : NSObject

+ (CAPropertyAnimation *)scaleAnimation:(CFTimeInterval)duration;

+ (CAPropertyAnimation *)opacityAnimation:(CFTimeInterval)duration;

+ (CAPropertyAnimation *)scalePathAnimation:(CFTimeInterval)duration startPath:(UIBezierPath *)startPath endPath:(UIBezierPath *)endPath;

+ (CAAnimationGroup *)groupScaleLayerAnimation:(CFTimeInterval)duration;

+ (CABasicAnimation *)repeatRotateAnimation;

+ (CAKeyframeAnimation *)popAnimation;

+(CAKeyframeAnimation *) animationWithCATransform3DForKeyPath:(NSString *)keyPath
                                               easingFunction:(LVViewEasingFunctionPointerType)function
                                                   fromMatrix:(CATransform3D)fromMatrix
                                                     toMatrix:(CATransform3D)toMatrix;

@end
